package com.tech.cloudapp.controller;


import com.tech.cloudapp.biz.service.IBManageService;
import com.tech.cloudapp.db.entity.Manage;
import com.tech.cloudapp.db.service.ManageService;
import com.tech.cloudapp.model.CommonResponseDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 管理员表 前端控制器
 * </p>
 *
 * @author mojianyou
 * @since 2025-07-04
 */
@RestController
@RequestMapping("/admin-manage")
public class ManageController {


    @Autowired
    private IBManageService manageServiceImpl;
//    @Autowired
//    private ManageService manageService;


    @PostMapping("/add")
    public CommonResponseDO create(@RequestBody Manage entity)
    {

        this.manageServiceImpl.saveOrUpdate(entity);
        return CommonResponseDO.success();
    }
}

